package com.example.xyblog.Service;

import com.example.xyblog.Model.Comment;
import com.example.xyblog.mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentService {
    @Autowired
    private CommentMapper commentMapper;

    public int updateComment(String content,Integer aid,Integer uid){
        return commentMapper.updateComment(content, aid, uid);
    }

    public List<Comment> getComment(Integer aid){
        return commentMapper.getComment(aid);
    }

}
